Template.publish.events({
  'submit .publish-form':function (e,tmpl) {
    e.preventDefault();
    var form = {};
     form.title = tmpl.$('input[name=title]').val();
     form.content = tmpl.$('textarea[name=content]').val();
    //  form.title

    console.log("===="+JSON.stringify(form));
    form.title&&form.content&&Meteor.call('publish',form);
    return false;
  }
})
